import { yfuPost } from '@/utils/request'

export function login (param, then1, error1) {
  yfuPost(process.env.BASE_API, '/user/login', param, then1, error1)
}
export function refresh (token) {
  yfuPost(process.env.BASE_API, '/user/refresh', {}, function (response) {
    console.log(response)
  }, function (error) {
    console.log(error)
  })
}
